package com.ks.composestudy.ui.data

import androidx.annotation.DrawableRes
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.ks.composestudy.R

class Chat(var friend: User, var msgs: MutableList<Msg>)

class Msg(var from: User, var text: String, var time: String) {
    var read: Boolean by mutableStateOf(true)
}

class User(
    val id: String,
    val name: String,
    @DrawableRes val avatar: Int
){
    companion object {
        val Me: User = User("kangshao", "康少", R.drawable.ic_avatar_1)
        val Gao: User = User("gaolaoshi", "高老师", R.drawable.ic_avatar_2)
    }
}